package com.drcoffee.drcoffeemall.service;

import com.drcoffee.drcoffeemall.entry.Machine;
import com.drcoffee.drcoffeemall.entry.MachineAndAttachment;
import com.drcoffee.drcoffeemall.entry.Result;
import org.springframework.http.ResponseEntity;

import java.util.List;
import java.util.Map;

/*
 * 机器
 * */
public interface MachineService {
    ResponseEntity<Object> getType();

    /**
     * 查询机器和附件
     */
    Result getMachineAndAttachment(List<Integer> id);

    Result getMachineId(String part_code,String cn_name,String en_name);

    /*
     * 查询机器
     * */
    Result getMachine(Integer type_id, String search);

    /*
     * 根据id查询机器
     * */
    Map<String, Object> getMachineById(Integer id);


}
